﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MainFrm.Master" AutoEventWireup="true" CodeBehind="Main.aspx.cs" Inherits="Ewts.Main" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
<link rel="stylesheet" href="/jquery/jquery.dataTables.css"type="text/css" />
 

 
<script type="text/javascript" src="/jquery/jquery.dataTables.js"></script>


</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="EwtsConext" runat="server">
<div class="tab1">
	<h2>最近更新</h2>
 
<br />
  
<br />

<div class="shadow2"> 

    <table id="tbColl" class="display" cellpadding="0" cellspacing="0" border="0" style="width:100%;">
 
      <thead>
 
        <tr>
            <th>序号</th>
            <th>更新时间</th>
            <th>更新内容</th>
        </tr>
 
      </thead>
 
      <tbody>
 
 
        <asp:Repeater ID="rept" runat="server">
              <ItemTemplate>
 
                <tr>
                   <td><%# Items.Count + 1%></td>
                   <td><%# Eval("createtime")%></td>
                   <td><%# Eval("updatecontent")%></td>
                </tr>
 
              </ItemTemplate>

       </asp:Repeater>
  
 
    </tbody>
 
    </table>
 

</div>
    <script type="text/javascript">

        $(document).ready(function () {

            $('#tbColl').dataTable({ "oLanguage": { "sUrl": "/jquery/jquery.dataTable.cn.txt" },
                "bJQueryUI": true,
                "sPaginationType": "full_numbers",
                'bPaginate': true,
                "bProcessing": true,
                "iDisplayLength": 50,
                "bSort": true,
                "aaSorting": [[0, "desc"]]
            });

            var len = $('#tbColl tr').length;
            for (var i = 1; i < len; i++) {
                $('#tbColl tr:eq(' + i + ') td:first').text(i);
            }
        });
 
</script>
  
</div>
</asp:Content>
